package com.ruoyi.mall.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 抢购区基础设置对象 mall_time_config
 * 
 * @author ruoyi
 * @date 2022-02-25
 */
public class MallTimeConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 用户一天最多买X商品（正常进入）为0不受限制 */
    @Excel(name = "用户一天最多买X商品", readConverterExp = "正=常进入")
    private Integer dayMaxBuyProduct;

    /** 用户一天最多买X商品（提前进入）为0不受限制 */
    @Excel(name = "用户一天最多买X商品", readConverterExp = "提=前进入")
    private Integer advanceDayMaxBuyProduct;

    /** 商品达到X峰值【抢购商品】 */
    @Excel(name = "商品达到X峰值【抢购商品】")
    private BigDecimal productPricePeak;

    /** 定时取消订单(抢购商品) */
    @Excel(name = "定时取消订单(抢购商品)")
    private Integer timingCancel;

    /** 卖方自动X分钟确认收款 */
    @Excel(name = "卖方自动X分钟确认收款")
    private Integer confirmTiming;

    /** 温馨提示（下单成功时）图片 */
    @Excel(name = "温馨提示", readConverterExp = "下=单成功时")
    private String cozyTips;

    /** 委托商品价比例 */
    @Excel(name = "委托商品价比例")
    private BigDecimal productEntrustScale;

    /** 委托费比例 */
    @Excel(name = "委托费比例")
    private BigDecimal entrustScale;

    /** 收款管理协议（富文本） */
    @Excel(name = "收款管理协议", readConverterExp = "富=文本")
    private String collectionTreaty;

    /** 用户协议（富文本） */
    @Excel(name = "用户协议", readConverterExp = "富=文本")
    private String userTreaty;

    /** 付款提示（富文本） */
    @Excel(name = "付款提示", readConverterExp = "富=文本")
    private String paymentPrompt;

    /** 隐私协议 */
    @Excel(name = "隐私协议")
    private String agreement;

    /** 是否隔夜：0-否 1-是 */
    @Excel(name = "是否隔夜：0-否 1-是")
    private Integer isOvernight;

    /** 委托上架开始时间 */
    @Excel(name = "委托上架开始时间")
    private Integer entrustStartTime;

    /** 委托下架开始时间 */
    @Excel(name = "委托下架开始时间")
    private Integer entrustEndTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDayMaxBuyProduct(Integer dayMaxBuyProduct) 
    {
        this.dayMaxBuyProduct = dayMaxBuyProduct;
    }

    public Integer getDayMaxBuyProduct() 
    {
        return dayMaxBuyProduct;
    }
    public void setAdvanceDayMaxBuyProduct(Integer advanceDayMaxBuyProduct) 
    {
        this.advanceDayMaxBuyProduct = advanceDayMaxBuyProduct;
    }

    public Integer getAdvanceDayMaxBuyProduct() 
    {
        return advanceDayMaxBuyProduct;
    }
    public void setProductPricePeak(BigDecimal productPricePeak) 
    {
        this.productPricePeak = productPricePeak;
    }

    public BigDecimal getProductPricePeak() 
    {
        return productPricePeak;
    }
    public void setTimingCancel(Integer timingCancel) 
    {
        this.timingCancel = timingCancel;
    }

    public Integer getTimingCancel() 
    {
        return timingCancel;
    }
    public void setConfirmTiming(Integer confirmTiming) 
    {
        this.confirmTiming = confirmTiming;
    }

    public Integer getConfirmTiming() 
    {
        return confirmTiming;
    }
    public void setCozyTips(String cozyTips) 
    {
        this.cozyTips = cozyTips;
    }

    public String getCozyTips() 
    {
        return cozyTips;
    }
    public void setProductEntrustScale(BigDecimal productEntrustScale) 
    {
        this.productEntrustScale = productEntrustScale;
    }

    public BigDecimal getProductEntrustScale() 
    {
        return productEntrustScale;
    }
    public void setEntrustScale(BigDecimal entrustScale) 
    {
        this.entrustScale = entrustScale;
    }

    public BigDecimal getEntrustScale() 
    {
        return entrustScale;
    }
    public void setCollectionTreaty(String collectionTreaty) 
    {
        this.collectionTreaty = collectionTreaty;
    }

    public String getCollectionTreaty() 
    {
        return collectionTreaty;
    }
    public void setUserTreaty(String userTreaty) 
    {
        this.userTreaty = userTreaty;
    }

    public String getUserTreaty() 
    {
        return userTreaty;
    }
    public void setPaymentPrompt(String paymentPrompt) 
    {
        this.paymentPrompt = paymentPrompt;
    }

    public String getPaymentPrompt() 
    {
        return paymentPrompt;
    }
    public void setAgreement(String agreement) 
    {
        this.agreement = agreement;
    }

    public String getAgreement() 
    {
        return agreement;
    }
    public void setIsOvernight(Integer isOvernight) 
    {
        this.isOvernight = isOvernight;
    }

    public Integer getIsOvernight() 
    {
        return isOvernight;
    }
    public void setEntrustStartTime(Integer entrustStartTime) 
    {
        this.entrustStartTime = entrustStartTime;
    }

    public Integer getEntrustStartTime() 
    {
        return entrustStartTime;
    }
    public void setEntrustEndTime(Integer entrustEndTime) 
    {
        this.entrustEndTime = entrustEndTime;
    }

    public Integer getEntrustEndTime() 
    {
        return entrustEndTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("dayMaxBuyProduct", getDayMaxBuyProduct())
            .append("advanceDayMaxBuyProduct", getAdvanceDayMaxBuyProduct())
            .append("productPricePeak", getProductPricePeak())
            .append("timingCancel", getTimingCancel())
            .append("confirmTiming", getConfirmTiming())
            .append("cozyTips", getCozyTips())
            .append("productEntrustScale", getProductEntrustScale())
            .append("entrustScale", getEntrustScale())
            .append("collectionTreaty", getCollectionTreaty())
            .append("userTreaty", getUserTreaty())
            .append("paymentPrompt", getPaymentPrompt())
            .append("agreement", getAgreement())
            .append("isOvernight", getIsOvernight())
            .append("entrustStartTime", getEntrustStartTime())
            .append("entrustEndTime", getEntrustEndTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
